package hmis.pos.Common.vo.Order;

import hmis.pos.Entity.Order;
import hmis.pos.Entity.OrderDetail;

import javax.persistence.MappedSuperclass;
import java.util.List;

@MappedSuperclass
public class OrderAndOrderDetail {

    //订单以及订单的详情

    private Order order;

    private List<OrderDetail> orderDetailList;

    public Order getOrder() {
        return order;
    }

    public void setOrder(Order order) {
        this.order = order;
    }

    public List<OrderDetail> getOrderDetailList() {
        return orderDetailList;
    }

    public void setOrderDetailList(List<OrderDetail> orderDetailList) {
        this.orderDetailList = orderDetailList;
    }

    @Override
    public String toString() {
        return "OrderAndOrderDetail{" +
                "order=" + order +
                ", orderDetailList=" + orderDetailList +
                '}';
    }
}
